package org.boot.ssm.wxshop.mapper;

import org.apache.ibatis.annotations.Param;
import org.boot.ssm.wxshop.common.BaseMapper;
import org.boot.ssm.wxshop.domain.Comment;

import java.util.List;

public interface CommentMapper extends BaseMapper<Comment> {
    /**
     * 根据商品ID查询评论和用户名集合
     * @param goodsId
     * @return
     */
    List<Comment> queryCommentAndUserNameListByGoodsId(@Param("goodsId")Integer goodsId);
}